﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Markdown
{
    class AcorisMLContract
    {
        // 写法:
        // <targetElement property="">
        //  TextElement
        // </targetElement>
        //
        // EBNF:
        // closure形式:    <document> := <tag property/>
        // unclosure形式:  <document> := <tag property>text</tag>
        //
        public const char ElementOpen               = '<';
        public const char ElementClose              = '>';
        public const char CommentOpen               = '!';
        public const char EqualSymbol               = '=';
        public const char CommentDash               = '-';
        public const char ElementDeclareClose       = '/';
        public const char SpaceSymbol               = '\x20';


        // <document>
        //     <TextElement Type="TextRun" >
        //     </TextElement>
        // </document>

        public enum Type
        {
            Element,
            PropertyName,
            PropertyValue,
            Comment,
            Text,
            TransferredSpace
        }
    }
}
